<!DOCTYPE html>
<html lang="pl" dir="ltr"> 
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link href="{baseUrl}/public/css/reset.css" rel="stylesheet" type="text/css" media="all">
<link href="{baseUrl}/public/css/style.css?<?php echo time(); ?>" rel="stylesheet" type="text/css" media="all">

<link href="<?php echo $this->baseUrl(); ?>/public/css/reset.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo $this->baseUrl(); ?>/public/css/jScrollPane.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo $this->baseUrl(); ?>/public/css/style.css?v=<?php echo time(); //niech zostanie na razie ?>" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo $this->baseUrl(); ?>/public/css/ui-darkness/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/swfobject.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.stylish-select.min.js"></script>

<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.ui.widget.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.ui.checkbox.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.ui.slider.js"></script>

<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/script_service.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.validate.pack.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jcarousellite_1.0.1.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.dimensions.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/public/js/jquery.form.js"></script>

<?php echo $this->inlineScript()->setScript( '
	var baseUrl = "{baseUrl}";
' ); ?>
<title><?php echo $this->translate( 'header_title' ); ?></title>
<?php


echo $this->headLink();
echo $this->headScript();

if( $this->userData ) {
	$uda = $this->userData->toArray();
	$logged = 1;
	$name = $uda['name'];
} else {
	$logged = '';
	$name = '';
}
?>
</head>
<body>

	<div class="boxtop">
		<p class="logo"><a href="{baseUrl}"><img src="{baseUrl}/public/img/logo.jpg" alt=""></a></p>
		<p class="car"><img src="{baseUrl}/public/img/car2.jpg" alt=""></p>
		<p class="langi">
			<a href="<?php echo $_SERVER['REQUEST_URI']?>?lang=pl"><img src="{baseUrl}/public/img/lang_pl.png" alt=""></a>
			<a href="<?php echo $_SERVER['REQUEST_URI']?>?lang=en"><img src="{baseUrl}/public/img/lang_en.png" alt=""></a>
			<a href="<?php echo $_SERVER['REQUEST_URI']?>?lang=cs"><img src="{baseUrl}/public/img/lang_cze.png" alt=""></a>
		</p>
		<?php if($logged != 1) {?>
		<div class="formlogin">
			<form method="post" action="{baseUrl}/index/auth" method="post" >
			<input type="text" name="email" value="Login" onfocus="if(this.value=='Login')this.value=''" onblur="if(this.value=='')this.value='Login'" class="text">
			<input type="password" name="password" value="Hasło" onfocus="if(this.value=='Hasło')this.value=''" onblur="if(this.value=='')this.value='Hasło'" class="text">
			<input type="submit" name="" value="" class="submit">
			</form>
			
			<div class="op">
			<a href="{baseUrl}/index/newaccount" class="acc"><?php echo $this->translate('menu_topacc_zalozkonto') ?></a> <span class="st">/</span> <a href="{baseUrl}/index/remindpass"><?php echo $this->translate('menu_topacc_przypomnijhaslo') ?></a>
			</div>
			
		</div>
		<?php }else {?>
		<div class="imlogged">
    		<p>
    		<span class="orange"><?php echo $this->translate( 'lay_hello' ); ?> <span class="bold"><?php echo $name?></span> </span><span class="st">/</span>
    		<a href="{baseUrl}/shop/account"><?php echo $this->translate( 'lay_my_profile' ); ?></a> <span class="st">/</span>
    		<a href="{baseUrl}/index/logout" class="bold"><?php echo $this->translate( 'lay_logout' ); ?></a>
    		</p>
		</div>
		<?php }?>
		 
		<div class="menu">
			<a href="{baseUrl}/contact" class="nomargin"><?php echo $this->translate( 'lay_contact' ); ?></a>
    		<a href="{baseUrl}/cooperation"><?php echo $this->translate( 'lay_coop' ); ?></a>
    		<a href="{baseUrl}/services"><?php echo $this->translate( 'lay_poor' ); ?></a>
			<a href="{baseUrl}/shop"><?php echo $this->translate( 'lay_produ' ); ?></a>

		</div>
	</div>
	<!-- end boxtop -->

	<div class="boxbar">
	
		<div class="search">
			<p class="text"><a href="{baseUrl}/index/search/adv/1"><?php echo $this->translate( 'lay_serch_adv' ); ?></a></p>
			<form method="get" action="{baseUrl}/index/search">
				<input type="submit" class="submit" name="" value="">
				<input type="text" class="text" name="q" value="<?php echo $this->translate( 'lay_search_fr' ); ?>" onfocus="if(this.value=='<?php echo $this->translate( 'lay_search_fr' ); ?>')this.value=''" onblur="if(this.value=='')this.value='<?php echo $this->translate( 'lay_search_fr' ); ?>'" >
			</form>
		</div>
		
		<div class="basket">
			<p><?php echo $this->translate( 'right_col_basket_items' ) ?>: <span class="val"><?php echo $this->basket->count; ?></span> <?php echo $this->translate( 'right_col_basket_items_value' ) ?>: <span class="val"><?php echo $this->basket->sum; ?></span> <a href="{baseUrl}/shop/basket"><?php echo $this->translate( 'btn_show_basket' ); ?></a></p>
		</div>
		
		<div class="observed">
			<p><?php echo $this->translate( 'right_col_observed' ) ?>: <span class="val"><?php echo $this->wishlistCnt ?></span> <a href="{baseUrl}/shop/observed/"> <?php echo $this->translate( 'btn_show_observed' ) ?></a></p>
		</div>
		
	</div>
	<!-- end boxbar -->
	
	<div class="boxmain">
		<div class="mainleft">
		
				<div class="boxmenu">
					<div class="nag"><?php echo $this->translate( 'left_menu_header' ) ?></div>
					<div class="body">
						<ul class="level1">
   				<?php 
   				$Menu = new Core_MenuService( $this->locale, $this );
   				
   				if( $this->menuStatic ) {
   				
	   				foreach( $Menu->getMenu( $this->menuType ) as $value ) {
		   				if( $this->active ) {
		   						$className = ( $this->active == $value['action'] ) ? 'class="active"' : '';
		   					} else {
		   						$className = ( $this->requestUriClean == $value['action'] ) ? 'class="active"' : ''; 
		   					}
		   					?>
		   					<li><a href="{baseUrl}/<?php echo $value['action'] ?>" <?php echo $className; ?>><?php echo $this->translate( $value['name'] ) ?></a>
		   					<?php 
							if( isSet( $value['child'] ) ) { 
								?>
								<ul class="level2">
								<?php 
		   						foreach( $value['child'] as $child ) { 
		   							$className2 = ( $this->requestUriClean == $child['action'] ) ? 'class="active"' : ''; ?>
									<li><a href="{baseUrl}/<?php echo $child['action'] ?>" <?php echo $className2 ?>><?php echo $this->translate( $value['name'] ) ?></a></li>
		   							<?php 
		   						} 
		   						?>
		   						</ul>
		   					<?php
							} 
							?></li><?php 
	   					} ?>
	   					
	   			<?php 
   				} else {
	   				foreach( $Menu->getMenu( $this->menuType ) as $value ) {
		   				if( $this->active ) {
		   						$className = ( $this->active == $value['action'] ) ? 'class="active"' : '';
		   					} else {
		   						$className = ( $this->requestUriClean == $value['action'] ) ? 'class="active"' : ''; 
		   					}
		   					?>
		   					<li><a href="{baseUrl}/<?php echo $value['action'] ?>" <?php echo $className; ?>><?php echo $value['name_'.$this->locale]  ?></a>
		   					<?php 
							if( isSet( $value['child'] ) ) { 
								?>
								<ul class="level2">
								<?php 
		   						foreach( $value['child'] as $child ) { 
		   							$className2 = ( $this->requestUriClean == $child['action'] ) ? 'class="active"' : ''; ?>
									<li><a href="{baseUrl}/<?php echo $child['action'] ?>" <?php echo $className2 ?>><?php echo $child['name_'.$this->locale]  ?></a></li>
		   							<?php 
		   						} 
		   						?>
		   						</ul>
		   					<?php
							} 
							?></li><?php 
	   					} ?>
	   					<li><a href="{baseUrl}/shop/bon"><?php echo $this->translate('menu_bonypodarunkowe') ?></a>
			<?php }?>
						</ul>

					</div>
					<div class="end"></div>

				</div>
				<!-- end kategorie -->
			<!-- cennik -->
			<div class="boxmenu">
				<div class="nag"><?php echo $this->translate( 'right_col_price_list' ) ?></div>
				<div class="body">
					<div class="cennik">
						<div class="ico"><a href="{baseUrl}/public/upload/<?php echo $this->cennik?>"><img src="{baseUrl}/public/img/icopdf.png" alt=""></a></div>
						<div class="text"><a href="{baseUrl}/public/upload/<?php echo $this->cennik?>"><?php echo $this->translate( 'right_col_price_list_text' ) ?></a></div>
					</div>
				<div class="clr"></div>
				</div>
				<div class="end"></div>
			</div>
			<!-- end cennik -->
			
			
			<!-- newsletter-->
			<div class="boxmenu">
				<div class="nag"><?php echo $this->translate( 'right_col_newsletter' ) ?></div>
				<div class="body">
					<div class="newsletter" method="post" action="{baseUrl}/index/newsletter">
						<form method="post" action="">
						<input type="hidden" name="returnurl" value="<?php echo $this->Currenturl(); ?>">
						<input type="submit" class="submit" name="" value="">
						<input type="text" class="text" name="email" value="<?php echo $this->translate( 'right_col_newsletter_enter_email' ) ?>" onfocus="if(this.value=='<?php echo $this->translate( 'right_col_newsletter_enter_email' ) ?>')this.value=''" onblur="if(this.value=='')this.value='<?php echo $this->translate( 'right_col_newsletter_enter_email' ) ?>'" >

						</form>
					</div>
				<div class="clr"></div>
				</div>
				<div class="end"></div>
			</div>
			<!-- end newsletter -->

			<!-- special-->
			<div class="boxmenu">
				<div class="nag"><?php echo $this->translate( 'right_col_special_products' ); ?></div>
				<div class="body">
					<div class="pspecial">
						<p class="text"><?php echo $this->listspecialrand[0]['name_' . $this->locale] ?></p>
						<p class="price"><?php echo $this->PriceSpecial( $this->listspecialrand[0], $this->priceRank, $this->locale, true ) ?></p>
					</div>
				<div class="clr"></div>
				</div>
				<div class="end"></div>
			</div>
			<!-- end special -->
			
		</div>
		
		<!-- 
		MAIN CONTENT
		 -->
		<div class="mainright content">
			
		<?php echo $this->layout()->content; ?>	
			
		</div>
    	<div class="clr"></div>
    	<!-- 
		END MAIN CONTENT
    	-->
    	
    	<div class="boxfotter">
    		<div class="logo"><img src="{baseUrl}/public/img/logo2.png" alt=""></div>
    		<div class="pal"><img src="{baseUrl}/public/img/pal.png" alt=""></div>
    		<div class="copy">
    		Copyright 2010 - Poorboy’s World Polishing &amp; Detailing Products
    		</div>
    		<div class="menu">
    			<a href="{baseUrl}/index/showstatic/id/18/"><?php echo $this->translate( 'stopka_politykaprywatnosci' ); ?></a> <span class="st">|</span>
    			<a href="{baseUrl}/index/showstatic/id/19/"><?php echo $this->translate( 'stopka_regulamin' ); ?></a> <span class="st">|</span>
    			<a href="{baseUrl}/index/showstatic/id/20/"><?php echo $this->translate( 'stopka_realizacjazamowienia' ); ?></a> <span class="st">|</span>
    			<a href="{baseUrl}/index/showstatic/id/21/"><?php echo $this->translate( 'stopka_formyplatnosci' ); ?></a> <span class="st">|</span>
    			<a href="{baseUrl}/contact"><?php echo $this->translate( 'stopka_kontakt' ); ?></a>
    		</div>
    	</div>
    	<!-- end boxfotter -->
	
	</div>
	<!-- end boxmain -->
	
</body>
</html>